package cn.iocoder.yudao.module.shop.api.appointment.dto;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 预约 Request DTO
 *
 * @author 芋道源码
 */

@Data
public class AppointmentCreateReqDTO {
    /**
     * 会员id
     */
    @NotNull(message = "会员id不能为空")
    private Long memberId;

    /**
     * 艾灸师id
     */
    @NotNull(message = "艾灸师id不能为空")
    private Long userId;

    /**
     * 项目id
     */
    @NotNull(message = "项目id不能为空")
    private Long itemId;

    @NotNull(message = "数量不能为空")
    private Integer count;

    /**
     * 时间索引
     */
    @NotNull(message = "时间索引不能为空")
    private Integer timeIndex;

    /**
     *预约日期
     */
    @NotNull(message = "预约日期不能为空")
    private LocalDateTime dateTime;

    /**
     *备注
     */
    private String comment;

    @NotNull(message = "店铺id不能为空")
    private Long tenantId;
}
